porting datagens, mode notes