revert readline import move, fix default config generation