added convert.php and modified socket.php. both functional.