added defaults to attributes
moved docoding uri to router