Added debug prints and server i s now working