removed pdb refs and fixed kwarg typo