added trip parsing