adding errors support
swag ++
update doc