updated logic for manjaro