[Sam] More SAM API (stille needs a few things + sample upadated