fixed resource ordering issue - conditionals do not follow ordering semantics