now packets are sent to the correct interfaces and bugs are fixed... and the project works