temp fix for -g option