new spb code additions