fixed bug where ref was converted permanently to a string
added calls to url schemas