added resource exception