updated for midas 1.0.3