moving enable and disable to core extension