first working version. Todo: crypted config file with credentials, and dest dir