recover lost functions