ifdefs processing (dirty hack)