implement custom command handler for sty+ct