alternative compilation scheme flag to avoid duplicate code