MESS function handlers and changeable templates