now saves globals for compat functions during enable and returns them during disable, in case user is using them elsewhere