automated ref numbers