setting secret stuff to key file