host configurable
clean up
parse Json on receiving message
deleted not necessary moethods