move lag setting to better location