cleanup code a little
clear ipc on ev change, really wait for ev in test