Finally working at server and local