oops ifdefs in the wrong place