add customClass option for better compatibility with various code styles.