add some missing functions