add initial minor mode code