pawn refactoring complete