combine the post collection and model parse functions into one place