added basic rest support