version update to 4.0.0 and add new methods and apis