upgrade to V3 of JS