Merge #267 into rollup

Approved-by: barosl
Merge #272 into tmp

Approved-by: