api seralization fixes