trying to fix debug option. seems to not want to work