work towards porting dealias. references #29