added update-alternatives support