server register + mask plugin