adding CDR and some tweaks to the server