added support for reading directly from api declaration, #39