fix problems with startup