port over commonjs to 1.0