first version of exceptions checker