restructured communication in server and eclipse project