change categoryName and fix bugs

please change it back.
you can use flag to pass in the host name