server now properly receivng structs