updated source code for the new lv0tool