better header selection
proper log verbosity selection
handled promise on ajax