changed the post work to use deferreds.