added resource api