added new assert to check if file exists