better resource ordering