we have pass the server pointer to the command, dont need to return index