moved general resource parts to the REST module