migrate web_debug to lib