updates to exception handling
try-catch works