add option parsing to binary and application supervisor