shouldn't have reverted... figred out why filepath wasn't empty