copy of current brlib.sh