misc changes in script for checking/updating taxonomy