added check for failure of learn before proceeding to markup in learn.sh