define pipelines. fix broken collection deletion