added server and some changes to protocl handler and tela