fix some bugs
fix typo
dirty hack: change default data_directory to centos default data_directory