added timeout to blocking commands