fixed issues with private_key not being picked from config. instead it was always overwritten with the default id_rsa