fixed counter and 2i bug,will start 2.0 api in new branch
fixed 2i bug and will start 2.0 in a new branch