added SAM support