simplified ifdef stuff