fixes context block wrong usage
adds local file backup.