* extract server commands to constants and reduced scope