added simulator check