add lsoption() and a test for it