remove trailing whitespace
disable interrupts in update_cats()