How intimate contact with nanoporous carbon benefits the reversible hydrogen desorption from NaH and NaAlH4.