moving cfg option to int