convert from melodic list input to GIFT dir input