changes option from string to boolean and associated data as such. still needs revision and better execution