implemented pruning, s3 support now complete-ish