attempting to only have one get and index timeline function, for both retrieval and search