lb: reworked idle handling, minor changes