code update to v2.0