extract log handler into its own file
add ansi color output