create rMetrics folder before file, should fix all the errors