fix kwargs bug so can load from DTS