some re-work of mod_sources