hopefully better error logging
better error handling HOPEFULLY