model singleton option. templates handling functions