working on REST-stuff