new version of detail fields script