added USEMARKOV and COLLECTMARKOV mode