add default and site specific error handling