fixed resource logic to be carried by object with resources