add time_count_wrapper function
add shutdown_funciton
update