added simple exception handler. needs some work