making debugging a flag