elinks: refactor