move logger to main file