added local memory option that doesn't yet work