refactored client commands parsing, fixed public/private messaging