added run check and run phase2