included sys/stat.h for the open_local_copy function