fixing deserializing with path params