set id as path when needed