Changed type of ls field on loc to a list of loc, resolves #329