coordinate driver and new template files in chi fitting