working on dettached thread for zproxy