server command handler