adding trap to package