fix(appManager): make maxLag configurable