fixed backend errorhandling