debug routines commented to adopt for gcc