add data + rest json routes