* added checks for listen and sendx