add macros for backward compatibility