working on java auth