actions and message counter implemented
fixed ping timeout issues