pre-processing script for path expressions