Real inter-pipeline synchronization

fixes #324