see other remark: we can't import `config` here in `filetools.py` without introducing a cyclic dep