rework kwargs handling in run_module function according to remarks