handle regression, handle toEnum better