added output in ksp_module