added logger and entry point