hainp: fix read config from file