added framework for logger system
fiexd the bug pointed out to us on github