add slave_lag prototype