added option of using private and public keys from filesystem