refactored s3 to refclasses - SUPER ANNOYING SP error