change 'wait' to 'auto'