common.js compliant porting