backup -- porting things to Java