s/$.when/can.when/ fixes #107