ext functions moved