source code for monitor refactoring with ACE and unixODBC