working ssm build