implemented the story loader