fix missing functions..