fix support for legacy node version 0.8
fix support for legacy node version 0.8