add path attribute