improve resReader.class