add custom frame mode support