tidy up and fix local credentials