some packet changing functions
refactoring, smart Makefile