tweaked to chown directory