bug fixes for blast script