flag: add conditional prefix support