clean ref plugin 3