prototype: errorhandling