implements proper default-exception handling