simplify collect script, add shared always