proper resource ordering