added deprecated warning to file directive