oops, it won't work as generic navigation code