make it work with configs