added conversion methods for FilePath and S3