convert deferreds from prototypal to closure style