nasty brute force, hopefully it all works.