merge conflicts between 1.0.8 and 1.2.0
branches: 1.2.2;add casts, change to multiline.
branches: 1.1.1;Initial revision