added examples, moved code inside conditional in failing file-exist file