some improvments in config