adding resource concept. base final state will always unlock the resources in the context.