add macro debug + modified readline