catch all custom number exceptions
fix a number of operations and formatting issues