added retries to ssh and scp
added rate limiting, working on pruing functionality