adapt to rs.js 0.10 API