major changes (added ssh-key support)