add code to module ca-qa (NOT FINISHED)