getScheme (ported from golang source code)
minor changes
getScheme -> Done
test getScheme
now it works properly