removed turn, fixed file existence check