redefine after mode is loaded