dir no longer a kwd argument