add a simple baseprefix
dont clear wildcard inputs on duplicate
add external resource
add attribute return-resource for classes