added disable interrupt functionality, removed old code