make more functions internal