add logger
add id to packet