use "grep -e" instead of multiple grep invocations