initial java logic, doesn't drop servers