first impl of metering