straightening out the reference counting
removing a compiler warning
moving interrupt enable to user-space