change actor class to use resource stacks as keys insteading of using their kind string