moved runtime options initialization into separate function