some preparations for simulator