notvel function can't be local - made global and confined to pipeworks.{}