configure logging from file
refactoring + config + logging