merge IB code from peter
drwxr-xr-x - ctdb