fix package import issue and pdb debugging problem