[qa] split qareports code to module
[misc] misc fixes