how to read resources