added client paramter to add_resource