fixes #262: a slight Backward compatibility with node < 0.11.0 to a certain extent