node 0.10 compatibility and debug improvements