moving logging and config into their own modules and other tweaks