update codes and create service task