more work on the API - it works