modified servercommand cpp