updated to support latest dingo/api