move grant action to client