store object correctly on s3 via pathname