implemented functions to turn ASM module on and off properly