the code that runs bandit but not the way we want it to