cleaned up ldtpd for readability