fix #1021, always check if files exist
fix #1021, always check if files exist
fix #1021, always check if files exist