add masterKey Authentication code