adapt for the latest dar.core