Make Cobra to work better in multi-instance environment