- add SAM api.
- do others changes.