migrating to kwdb-based: lsl functions