modify to export WITH-MEMORY-BLOCK macro