fix makefile
make agent placement deterministic
record and use generation, change consume behaviour