[SD] add register function.