if no json (no data) is in subscribed message the subscriber can crash
fixed some bugs