make addPath method static