add ifdef for distribution