more work on ldasetup.sh