export COG config earlier in the load process; should fix #7