awesome before and after deferreds working