fixes for reinstalls