export memory functions