read resource