mostly working version of the configuration panel