document middleware wizard