automate ctag generation