restore remote api
make remote api build and classmethod