adding some copy loc handling code