fake up some missing functions