merge into common.cc