removing duo stuff
converting ast before custom streams