beautify,fix directive n create api