Replace sub packages