added triepathstack but needs to reduce the storage used