refactoring
added cometns api