refactor `f`: use all modules as extenders, remove unused code, load local config