added a timeline api