fixed it up a little
fixed resource model issue