going on with logger(bad code for now)