adapting to changes in Congress API