build matrix from data
fix config option