set default directory in constructor