add autorun with timeout support.