added serializer so json format would be compatible with ember