adding support for cog4 - unfinished