further improve REST interface