a faster and more well tested melt_