get custom mode working