fix redirect
improved output handling
unify resources
stricter content negotiation