corrected gsub bug for require