extracted some method for ListResources