add source location setting for showing code function