fix some startup issues