port s3 component to multi platform  - IOS/OSX