shouldn't have used $startdir, going to update.