added resource support