*introducing global lock to prevent simultaneous access
*preparation for central ES changes
cleaner error reporting and exit on inability to mount ramdisk or output