this is basically working, but all sps are apparently excluded at some point