semi-working flatfile APIS