better debug LS functionality