* Add better error handling as well as a DEBUG env var