add --clear sources as appropriate