remove some ports
fix log function