re-worked require flow to support using optimiser for production