update for the latest co v3.0

This is an update for the latest version of co library. Please merge if you don't mind.