added support for error pages
started auto-api feature