smarter split of prod files