extract out releasecom function