common functions

Signed-off-by: UFO <ufo.qiao@sap.com>