replaced a deprecated API in all model classes; added our own error handling controller+templates