more work on rest api