implemented base for packet validation