some work on config system