use id as name
add get pathname
move calldepth to the beginning as global var