this is use for replace libwait