check disabled flag before disabling, added verbose logging flag