use keyfile instead of key