removed misc bugs regarding open_app, Note: relocate p1.kill()