some fixes for active_slots, minor cleanup
3 level setup does not run yet