move meter in own file