added debug messages to startup process