trying to get state vector to work with existing psystem