wrote many server commands handling on server