minor change
Fix when host or scheme are not always available
Start to implement Atom writer