restore common funcs