added Stan stuff