removed setFileDir method