migrating options to config. Added logprefix to all output.