add preprocessor to hide unused functions