Refactored and added better errormessages for builtin patchhanders for puppets.