more refactoring of DenseTracker api