replace deactivateApp and takeScreenshot with mechanic