version 1.5.0 (added timeout)