changes to errorcontroller