added protolLib hook more efficient