fix bugs, wait for developing trace function.