Fixing some init bugs, send init as json object