use NAN_METHOD2 replace macro