ugh, this is becoming more ugly every day. we should really clean this up. but since the original code was like this too, it's fine with me for gotham like this