move static client data away
move some private methods to prototypes