#3370 new version, fixed resource reader