rename to get correct extension