added a custome timeout to exec_command function