server can now receive 2 structs