added searchPath option