added resource reader support