larval upgrade for production code