converted the getStoryline to use a promise