removed true/false tests for enable/disable, just use 0/1