added sql as mode