cleanup API of trajectory lookup