moving to c++ for inotifu