fixed: middleware
updated: documentation