use ivy resolution and set flatdir