clean up and fix uri check
fix caps for multi file sources automatically