manage literal flag automatically