slight improvements to client and Crapgent.java