fix repository creation & update