add pathname to comments