added interfaces for reading task_id and parent_id in pfunc.hpp