attack mini harness
fixing key allocation algorithm