code cleanup in ls_script.liq