changes to work with node v0.10.22