saves state  post build once api ste