implemented packet validation, SYN functionality