separate API and API errors into separate package