added runtype detection and cis parsing support