add global error calculation functions, defaults & utility functions