methods worked, but now broken. structs not tested yet