generalized resource system