attempt to move credentials to a file