adapted to most recent version of UF interfaces
fixed fragile operation on path