use global_timeout value if timeout undefined