make message method dynamic according to settings 
make message method dynamic according to settings 

message function depends on ```settings.headerSize```
ehpc/bootstrap-waitingfor,ehpc/bootstrap-waitingfor