fixing lpd bugs