updated to work with latest ab lib