changed appResource to app, sub resource to name