got rid of exceptions in extern class