added tap function to the program, and to backend, check if tcp is enabled, if so only console log right now...