editing send/recv loop on server to accomodate for checking mail