add simulator support