removed setDir method