upgrade to 4.0.0 and ruby 2-p247