node 0.11 and 0.8 compatibility