using extend for resources