moved debug to initialize.c