changing method
fixed up makefile for server compilation