check if sam is installed