bugfixes and init.d