trying to get the restful interface working