add conf file and some macro