limit length of paths and types
simplify and correct qname
renaming