plugs are functions