add some features to rest api