made flag false by default. setting to true overrides s3, otherwise implicit emulation based on s3_key