slowly making restful interface work