move logging into its own module