refractor the master.el to cofi-theme.el