swap to java, initial ports of DNoved1's code -- WILL NOT BUILD -- BROKEN