just moves the debug under the is local logic
Merge pull request #68 from jeremyBass/master

just moves the debug under the is local logic