struggling with register it seems that client doesn't receive messages