added base module for error handling - should be a place for generic and common functionality