prototype of dmet localization