moving pcl_functions toward a runnable thread