added noprompt flag

not sure about this implementation. It seems that `ctx` should be used for other things and maybe not config.