nbd but this function seems a bit silly now especially since it's only called once (was going to write this and merge before i realized it had already been merged)