many fixes, added support for different actions(join, part, mode)