refactor: config and dict as separate files