local version v1 finished - need to test metric calc