works on node < 0.6 (yes, version less than 0.6..)