added -montecarlo parameter to console