added memo file function and stop on error function