moving chown to its own routine