improved makelns.sh