add support for keyfiles