finally got all the s3 stuff working nicely