fix for local file not working