bot client java and browser code