auto gen model dir