added nil check for startup packages