preliminary version that allows for selection of processes