fixed bugs and added pdb parser