added sanity check on repo create/update