move config variable to global