using generator expression instead of location property.
using native filepath when possible.