added S3 publishing capability, reduced dependencies