rudimentary alias replacing is implemented (simple search and replace, not robust to string literals)