add debug prints to start.c