handle ptrtoint of functions