add file exists checking