Working version with client status

includes client status in all messages