done with core simulator, although not tested thoroughly