fixed bug with exec blocking thread