draft app structure, working input args handling infrastructure code (args parsing is broken so far)