fix chown and discovery