altered lsl to group directories first