improved "path" definition