updated preview scripts to check for lockfiles and failed turns