more porting. #78.