add possibility to build using matrix