update ARC, fix some bugs & typing errors