add some debug and assert flags in debug mode