adding json model, changing block ordering mechanism
updated