initial work on metrics