see my comments on #364, they all pretty much apply to this task as well