removed send code from common.h