add scheme validation