add lastest version of blocking code