working on GetResource