move vloc fitting to an independent file