add libs for socket and exceptions