missing debug check. really need better debug settings