Finally figured out localhost testing
remove useless code