modified main.pd for netsend version