fixed some startup issues