added filtering by environment variables. feel free to add your own