add possible concurrency bugs and energy bugs