refactor global calls into Main(). Tweak airline config