old code from data-binding branch
0.1.1