wait test is wrong
prepare.c not compiling for 5.3 fix #188 #189