updated script to work with selectSplice package