adding trap as dev dependency