refactored youtube backend