add logger
clean up classes
trying to daemonize process
move into loop block