Moving over s3g access to a plugin