fix bugs and logic, remove google cdn