extract ls to module; add ls to arrays