config memory on the fly