changed custom chown and chmod