added debug flag to compile