On the connection between WZW and free field theories