minor tweaks
cleaning up logging and init
bugfixes for generic polling