changed how keys are handled. Now they are just resource_id.