fix program loader and snooping

loopback worked on GHDL simulation.