connections are accepted on new threads
fixing warning messages on program compilation