solve some problem left when using conf file