remove debug to new lib