bugfixes and startup defaults