make it usefull and add server code