trying to fix agal stream issue