rename resource
format file