fixing debug flag?