debug ok, todo: implement other basic metrics