assignment of plugs to mains