ln_store: more looping constructs changes