add S3 support and more options to COPY FROM