add sm conversion utility