fixed debug flag treatment as integer