add metric date mathods, extend  main, format