simplify logger to fix issues, remove process listener