fix some bug, need a config_file editer