made join message conditional