added fileControl, untested