improved cleanup of sandbox. add setting for sandbox location to pilot