tighten up error handling
print exception
reindent