massive changes towards the ban api, still very unstable!