some degub printing and makefile updates