joint debug with backend fix bugs