updated lbma.pl script