trim down config iface and use more type assertions