rewrote beeminder api