simplify reading resource