added raw mode