rewrite of the remeta project