little tweak to enable/disable functionality