adapt to new version of nimbus.js