Add some error prints and allow configuring s3 host/port