made chown idempotent
fixed typo, added ipv6 support