better logging, matrix orientation()