enable and disable mock