TODO: high cpu usage issue