read run type from parameter