add memory options in the wrapper of nexus