actually fixed main to actually add debug flag