more work on getting s3 plugin working