added a pipe between lock and unlock all