change serializer to return a hash with string keys