add paper API and tests
A