update to 4.2.0.r1

4.2.0 has not yet been released but we need some bits of it.
Merge pull request #170 from reallyenglish/10.0@tomoyukis

update to 4.2.0.r1