remove debug flag because it attempts to save file incorrectly without the debug flag