updated lib (added -e for foundation builds)