handle redeploy of multi-level modules properly