added timeout to exec command