reverted bad commit to lib.sh