move Exceptions into main module