minor fixes in logging and init script