re-writed and tested search_for_module function