first sketch of a script to manipulate SSPs and CSPs