added logic to detect simulink