replace deactivateApp and takeScreenshot functions with mechanic equivalents