improve debug
Merge branch 'master' of github.com:cleverca22/lou-scripts
prevent recursion in this function