move credentials to credentials file