cleaning up logging and init
bugfixes for generic polling