building scan load wr function to troubleshoot