separate rigid bodies handling from the restraint code
fix pdb connect