added option to change default timeout