shifting to functions, everything still working
shifting to functions, everything still working
impAttackEnv broken seg fault