added support for authentication and kicking