adding a non file interface to trajectory parser