added check for simulator