added sparsematrix proto flexibility updates