new function evaluation; iterate over directory in stack_slices
fixed unicode problem with esutil.htm.match
robust handling of empty selections
improved script logic and exception handling