adapt to use oldweather imma class