change glob/stars option to a conditional