now uses scriptjob to get the selection, and works with cv's now.