BUG:incorrect file name of hourly rotation ; move http and tcp handler function to their own file