fixed segfault
full protocol implementation
vtp refactoring